import { post } from '@/api/http'

// 列表获取
const getPeerList = (data: any) => post<any>({ url: '/sameIndustryInfo/findPageList', data })

// 启用停用
const updatePeerStatus = (data: any) => post<any>({ url: '/sameIndustryInfo/changeStatus', data })

// 导出
const exportPeer = (data: any) => post<any>({ url: '/sameIndustryInfo/exportExcel', data })

// 详情
const getPeerDetail = (data: any) => post<any>({ url: '/sameIndustryInfo/detail', data })

// 新增编辑
const updatePeer = (data: any) => post<any>({ url: '/sameIndustryInfo/createOrEdit', data })

// 获取同行
const getPeer = (data: any) => post({ url: '/sameIndustryInfo/getList', data })

export { getPeerList, getPeer, updatePeerStatus, exportPeer, getPeerDetail, updatePeer }
